package com.sky.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration
public class WebClientConfig {
    @Bean
    public WebClient globalWebClient() {
        return WebClient.builder()
                // 可以在这里添加更多的全局配置，如默认请求头
                .defaultHeader("Content-Type", "application/json")
                .build();
    }
}